(function() {
  var $;
  $ = jQuery;
  $.fn.twitter = function(options) {
    var settings;
    settings = $.extend({}, options);
    return this.each(function() {
      var endpoint, link;
      link = $(this);
      endpoint = encodeURI("http://api.twitter.com/1/users/show.json?screen_name=" + ((link.attr('href')).split('/').pop()));
      return $.getJSON(settings.url, {
        url: endpoint
      }, function(response) {
        return link.attr('title', "" + response.followers_count + " followers");
      });
    });
  };
}).call(this);
